/**
 * Description: 
 * File: a.c |Time: 2021-07-01 06:50
 */


#include <stdio.h>
#include <time.h>

int main(int argc, const char *argv[])
{
    time_t timp = time(NULL);
    struct tm *tms =  localtime(&timp);
    printf("%4d-%02d-%02d %02d:%02d:%02d\n", 
            tms->tm_year+1900, tms->tm_mon+1, tms->tm_mday, 
            tms->tm_hour, tms->tm_min, tms->tm_sec);

    return 0;
}




